<template>
  <el-collapse v-model="activeNames">
    <el-collapse-item name="基本配置">
      <template slot="title">
        <div class="title">
          <i class="iconfont icon-peizhi"></i>
          <span>基本配置</span>
        </div>
      </template>
      <el-form class="config" label-position="top">
        <el-form-item label="组件名称">
          <el-input :value="selectWidget.name" disabled></el-input>
        </el-form-item>
        <el-form-item label="使用标题">
          <el-switch
            v-model="selectWidgetBase.title"
            :active-value="true"
            :inactive-value="false"
          >
          </el-switch>
        </el-form-item>
        <el-form-item v-if="selectWidgetBase.title" label="标题名称">
          <el-input v-model="selectWidgetBase.titleName"></el-input>
        </el-form-item>
        <el-form-item label="自定义样式">
          <el-input v-model="selectWidgetBase.style" type="textarea"></el-input>
        </el-form-item>
      </el-form>
    </el-collapse-item>
  </el-collapse>
</template>

<script>
import widget from '@/mixins/widget'

export default {
  mixins: [widget],
  data() {
    return {
      activeNames: '基本配置'
    }
  }
}
</script>

<style lang="scss" scoped></style>
